package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.domain.Dish;
import com.itheima.dto.DishDto;
import org.springframework.transaction.annotation.Transactional;


public interface DishService extends IService<Dish> {
    @Transactional
    public void saveWithFlavor(DishDto dishDto);

    //根据id查询菜品信息和对应的口味信息
    public DishDto getByIdWithFlavor(Long id);

    @Transactional
    public void updateWithFlavor(DishDto dishDto);
}
